package com.cm.figure.model.Data;

import java.util.Objects;

/**
 * ClassName:DataMap
 * Package:com.cm.figure.model
 * Description:
 *
 * @Date:2021/8/14 16:12
 * @com.chuangmei
 */
public class Data {

    // 数据
    private Object data;

    //状态
    private Meta meta;

    public Data() {
    }

    public Data(Object data, Meta meta) {
        this.data = data;
        this.meta = meta;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Meta getMeta() {
        return meta;
    }

    public void setMeta(Meta meta) {
        this.meta = meta;
    }

    @Override
    public String toString() {
        return "DataMap{" +
                "data=" + data +
                ", meta=" + meta +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Data data1 = (Data) o;
        return Objects.equals(data, data1.data) &&
                Objects.equals(meta, data1.meta);
    }

    @Override
    public int hashCode() {
        return Objects.hash(data, meta);
    }
}
